package com.zmn.plat.services.interfaces.part;

import java.util.List;

import com.zmn.plat.model.entity.part.PartSkuRelation;
import com.zmn.plat.model.entity.part.PartSkuRelationDTO;

/**
 * The interface Part sku relation dao.
 *
 * @author xiangjunming
 * @since 2019/03/23 10:30:50
 */
public interface PartSkuRelationService {

    /**
     * Find by key part sku relation.
     *
     * @param relationId
     *            the relation id
     * @return the part sku relation
     */
    PartSkuRelation findByKey(Integer relationId);

    /**
     * 查询配件拆分关系
     * 
     * @param oneSkuId
     * @return
     */
    List<PartSkuRelationDTO> listByOneSkuId(Integer oneSkuId);

    /**
     * 查询配件拆分关系
     * 
     * @param oneSkuIds
     * @return
     */
    List<PartSkuRelationDTO> listByOneSkuIds(List<Integer> oneSkuIds);

    /**
     * Update by key int.
     *
     * @param record
     *            the record
     * @return the int
     */
    int updateByKey(PartSkuRelation record);

    /**
     * Insert int.
     *
     * @param record
     *            the record
     * @return the int
     */
    int insert(PartSkuRelation record);

    /**
     * Delete by key int.
     *
     * @param relationId
     *            the relation id
     * @return the int
     */
    int deleteByKey(Integer relationId);
}